import request from '@/utils/request'

// 查询学生一分一段列表
export function listYfyd(query) {
  return request({
    url: '/student/yfyd/list',
    method: 'get',
    params: query
  })
}

// 查询学生一分一段详细
export function getYfyd(id) {
  return request({
    url: '/student/yfyd/' + id,
    method: 'get'
  })
}

// 新增学生一分一段
export function addYfyd(data) {
  return request({
    url: '/student/yfyd',
    method: 'post',
    data: data
  })
}

// 修改学生一分一段
export function updateYfyd(data) {
  return request({
    url: '/student/yfyd',
    method: 'put',
    data: data
  })
}

// 删除学生一分一段
export function delYfyd(id) {
  return request({
    url: '/student/yfyd/' + id,
    method: 'delete'
  })
}
